using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;

namespace Framework.Library.Core.Data.DataManager
{
    public interface DBManager
    {
        bool CheckConnection();
        int ExecuteNonQuery(CommandType commandType, string commandText, ArrayList parameters, bool transaction);
        object ExecuteScalar(CommandType commandType, string commandText, ArrayList parameters, bool transaction);
        DataSet ExecuteDataSet(CommandType commandType, string commandText, ArrayList parameters, bool transaction);
        List<T> ExecuteList<T>(CommandType commandType, string commandText, ArrayList parameters, bool transaction);
        List<T> ExecuteList<T>(CommandType commandType, string commandText, ArrayList parameters, bool transaction, out int Total);
    }
}